<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

		<title>搜索页面</title>

		<link href="${pageContext.request.contextPath }/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css" />
		<link href="${pageContext.request.contextPath }/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css" />

		<link href="${pageContext.request.contextPath }/basic/css/demo.css" rel="stylesheet" type="text/css" />

		<link href="${pageContext.request.contextPath }/css/seastyle.css" rel="stylesheet" type="text/css" />

		<script type="text/javascript" src="${pageContext.request.contextPath }/basic/js/jquery-1.7.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath }/js/script.js"></script>
		
	</head>

	<body>
		<!--顶部导航条 -->
		<%@ include file="menu.jsp" %>
			<!--悬浮搜索框-->

			<%@ include file="find.jsp" %>
			<b class="line"></b>
           <div class="search">
			<div class="search-list">
			<div class="nav-table">
			   <%@ include file="category.jsp" %>
			</div>
					<div class="am-g am-g-fixed">
						<div class="am-u-sm-12 am-u-md-12">
	                  	<div class="theme-popover">														
							<div class="searchAbout">
								<span class="font-pale">相关搜索：</span>
								<a title="XXX" href="#">XXX</a>
								<a title="XXX" href="#">XXX</a>
								<a title="XXX" href="#">XXX</a>
							</div>
							<ul class="select">
								<p class="title font-normal">
									<span class="fl">XXX</span>
									<span class="total fl">搜索到<strong class="num">997</strong>件相关商品</span>
								</p>
								<div class="clear"></div>
								<li class="select-result">
									<dl>
										<dt>已选</dt>
										<dd class="select-no"></dd>
										<p class="eliminateCriteria">清除</p>
									</dl>
								</li>
								<div class="clear"></div>
								<li class="select-list">
									<dl id="select1">
										<dt class="am-badge am-round">商品属性1</dt>	
									
										 <div class="dd-conent">										
											<dd class="select-all selected"><a href="#">全部</a></dd>
											<dd><a href="#">属性1-Attr</a></dd>
											<dd><a href="#">属性1-Attr</a></dd>
											<dd><a href="#">属性1-Attr</a></dd>
											<dd><a href="#">属性1-Attr</a></dd>
											<dd><a href="#">属性1-Attr</a></dd>
											<dd><a href="#">属性1-Attr</a></dd>
										 </div>
						
									</dl>
									<dl id="select2">
										<dt class="am-badge am-round">商品属性2</dt>	
									
										 <div class="dd-conent">										
											<dd class="select-all selected"><a href="#">全部</a></dd>
											<dd><a href="#">属性2-Attr</a></dd>
											<dd><a href="#">属性2-Attr</a></dd>
											<dd><a href="#">属性2-Attr</a></dd>
											<dd><a href="#">属性2-Attr</a></dd>
											<dd><a href="#">属性2-Attr</a></dd>
											<dd><a href="#">属性2-Attr</a></dd>
										 </div>
						
									</dl>
									<dl id="select3">
										<dt class="am-badge am-round">商品属性3</dt>	
									
										 <div class="dd-conent">										
											<dd class="select-all selected"><a href="#">全部</a></dd>
											<dd><a href="#">属性3-Attr</a></dd>
											<dd><a href="#">属性3-Attr</a></dd>
											<dd><a href="#">属性3-Attr</a></dd>
											<dd><a href="#">属性3-Attr</a></dd>
											<dd><a href="#">属性3-Attr</a></dd>
											<dd><a href="#">属性3-Attr</a></dd>
										 </div>
						
									</dl>
								</li>
					        
							</ul>
							<div class="clear"></div>
                        </div>
							<div class="search-content">
								<div class="sort">
									<li class="first"><a title="综合">综合排序</a></li>
									<li><a title="销量">销量排序</a></li>
									<li><a title="价格">价格优先</a></li>
									<li class="big"><a title="评价" href="#">评价为主</a></li>
								</div>
								<div class="clear"></div>

								<ul class="am-avg-sm-2 am-avg-md-3 am-avg-lg-4 boxes">
									<s:iterator var="product" value="pageBean.list">
									<li>
										<div class="i-pic limit">
											<a href="${pageContext.request.contextPath }/product_findByPid.action?pid=<s:property value="#product.pid"/>&pageNo=<s:property value="pageNo"/>">
											<s:iterator var="image" value="#product.images">
												<s:if test="#image.idesc == 1">
													<img src="${pageContext.request.contextPath }/<s:property value="#image.uri_mid"/>" />											
												</s:if>
											</s:iterator>
											<p class="title fl"><s:property value="#product.pname"/></p>
											<p class="price fl">
												<b>¥</b>
												<strong><s:property value="#product.act_price"/></strong>
											</p>
											<p class="number fl">
												销量<span class="sales">1110</span>
											</p>
											</a>
										</div>
									</li>
									</s:iterator>
								</ul>
							</div>
							<div class="search-side">

								<div class="side-title">
									经典搭配
								</div>

								<li>
									<div class="i-pic check">
										<img src="${pageContext.request.contextPath }/images/cp.jpg" />
										<p class="check-title">萨拉米 1+1小鸡腿</p>
										<p class="price fl">
											<b>¥</b>
											<strong>29.90</strong>
										</p>
										<p class="number fl">
											销量<span>1110</span>
										</p>
									</div>
								</li>
								<li>
									<div class="i-pic check">
										<img src="${pageContext.request.contextPath }/images/cp2.jpg" />
										<p class="check-title">ZEK 原味海苔</p>
										<p class="price fl">
											<b>¥</b>
											<strong>8.90</strong>
										</p>
										<p class="number fl">
											销量<span>1110</span>
										</p>
									</div>
								</li>
								<li>
									<div class="i-pic check">
										<img src="${pageContext.request.contextPath }/images/cp.jpg" />
										<p class="check-title">萨拉米 1+1小鸡腿</p>
										<p class="price fl">
											<b>¥</b>
											<strong>29.90</strong>
										</p>
										<p class="number fl">
											销量<span>1110</span>
										</p>
									</div>
								</li>

							</div>
							<div class="clear"></div>
							<!--分页 -->
							<ul class="am-pagination am-pagination-right">
								<s:if test="cid != null">
									<s:if test="pageBean.pageNo != 1">
										<li><a href="${pageContext.request.contextPath }/product_findByCid.action?cid=<s:property value="cid"/>&pageNo=<s:property value="pageBean.prevPage"/>">&laquo;</a></li>
									</s:if>
									<s:else>
										<li class="am-disabled"><a href="${pageContext.request.contextPath }/product_findByCid.action?cid=<s:property value="cid"/>&pageNo=<s:property value="pageBean.prevPage"/>">&laquo;</a></li>
									</s:else>
									<s:if test="cid != null">
										<s:if test="pageBean.pageNo - 4 < 0">
											<s:iterator var="i" begin="pageBean.pageNo - (pageBean.pageNo - 1)" end="pageBean.pageNo + 6-(pageBean.pageNo - 1)"> 
												<s:if test="pageBean.pageNo != #i">
													<li><a href="${pageContext.request.contextPath }/product_findByCid.action?cid=<s:property value="cid"/>&pageNo=<s:property value="#i"/>"><s:property value="#i"/></a></li>
												</s:if>
												<s:else>
													<li class="am-active"><a href="#"><s:property value="#i"/></a></li>
												</s:else>
											</s:iterator>
										</s:if>
										<s:elseif test="pageBean.pageNo + 4 > pageBean.totalPageNo">
											<s:iterator var="i" begin="pageBean.totalPageNo - 6" end="pageBean.totalPageNo"> 
												<s:if test="pageBean.pageNo != #i">
													<li><a href="${pageContext.request.contextPath }/product_findByCid.action?cid=<s:property value="cid"/>&pageNo=<s:property value="#i"/>"><s:property value="#i"/></a></li>
												</s:if>
												<s:else>
													<li class="am-active"><a href="#"><s:property value="#i"/></a></li>
												</s:else>
											</s:iterator>
										</s:elseif>
										<s:else>
											<s:iterator var="i" begin="pageBean.pageNo - 3" end="pageBean.pageNo + 3"> 
												<s:if test="pageBean.pageNo != #i">
													<li><a href="${pageContext.request.contextPath }/product_findByCid.action?cid=<s:property value="cid"/>&pageNo=<s:property value="#i"/>"><s:property value="#i"/></a></li>
												</s:if>
												<s:else>
													<li class="am-active"><a href="#"><s:property value="#i"/></a></li>
												</s:else>
											</s:iterator>
										</s:else>
									</s:if>
									<s:if test="pageBean.pageNo != pageBean.totalPageNo">
										<li><a href="${pageContext.request.contextPath }/product_findByCid.action?cid=<s:property value="cid"/>&pageNo=<s:property value="pageBean.nextPage"/>">&raquo;</a></li>
									</s:if>
									<s:else>
										<li class="am-disabled"><a href="${pageContext.request.contextPath }/product_findByCid.action?cid=<s:property value="cid"/>&pageNo=<s:property value="pageBean.nextPage"/>">&raquo;</a></li>
									</s:else>
								</s:if>
								<s:if test="csid != null">
									<s:if test="pageBean.pageNo != 1">
										<li><a href="${pageContext.request.contextPath }/product_findByCsid.action?csid=<s:property value="csid"/>&pageNo=<s:property value="pageBean.prevPage"/>">&laquo;</a></li>
									</s:if>
									<s:else>
										<li class="am-disabled"><a href="${pageContext.request.contextPath }/product_findByCsid.action?csid=<s:property value="csid"/>&pageNo=<s:property value="pageBean.prevPage"/>">&laquo;</a></li>
									</s:else>
									<s:if test="csid != null">
										<s:iterator var="i" begin="1" end="pageBean.totalPageNo"> 
											<s:if test="pageBean.pageNo != #i">
												<li><a href="${pageContext.request.contextPath }/product_findByCsid.action?csid=<s:property value="csid"/>&pageNo=<s:property value="#i"/>"><s:property value="#i"/></a></li>
											</s:if>
											<s:else>
												<li class="am-active"><a href="#"><s:property value="#i"/></a></li>
											</s:else>
										</s:iterator>
									</s:if>
									<s:if test="pageBean.pageNo != pageBean.totalPageNo">
										<li><a href="${pageContext.request.contextPath }/product_findByCsid.action?csid=<s:property value="csid"/>&pageNo=<s:property value="pageBean.nextPage"/>">&raquo;</a></li>
									</s:if>
									<s:else>
										<li class="am-disabled"><a href="${pageContext.request.contextPath }/product_findByCsid.action?csid=<s:property value="csid"/>&pageNo=<s:property value="pageBean.nextPage"/>">&raquo;</a></li>
									</s:else>
								</s:if>
								
								<s:if test="keyword != null">
									<s:if test="pageBean.pageNo != 1">
										<li><a href="${pageContext.request.contextPath }/product_search.action?keyword=<s:property value="keyword"/>&pageNo=<s:property value="pageBean.prevPage"/>">&laquo;</a></li>
									</s:if>
									<s:else>
										<li class="am-disabled"><a href="${pageContext.request.contextPath }/product_search.action?keyword=<s:property value="keyword"/>&pageNo=<s:property value="pageBean.prevPage"/>">&laquo;</a></li>
									</s:else>
									<s:if test="keyword != null">
										<s:iterator var="i" begin="1" end="pageBean.totalPageNo"> 
											<s:if test="pageBean.pageNo != #i">
												<li><a href="${pageContext.request.contextPath }/product_search.action?keyword=<s:property value="keyword"/>&pageNo=<s:property value="#i"/>"><s:property value="#i"/></a></li>
											</s:if>
											<s:else>
												<li class="am-active"><a href="#"><s:property value="#i"/></a></li>
											</s:else>
										</s:iterator>
									</s:if>
									<s:if test="pageBean.pageNo != pageBean.totalPageNo">
										<li><a href="${pageContext.request.contextPath }/product_search.action?keyword=<s:property value="keyword"/>&pageNo=<s:property value="pageBean.nextPage"/>">&raquo;</a></li>
									</s:if>
									<s:else>
										<li class="am-disabled"><a href="${pageContext.request.contextPath }/product_search.action?keyword=<s:property value="keyword"/>&pageNo=<s:property value="pageBean.nextPage"/>">&raquo;</a></li>
									</s:else>
								</s:if>
							</ul>
						</div>
					</div>
					<%@ include file="floor.jsp" %>
				</div>

			</div>

		<!--引导 -->
		<div class="navCir">
			<li><a href="home.html"><i class="am-icon-home "></i>首页</a></li>
			<li><a href="sort.html"><i class="am-icon-list"></i>分类</a></li>
			<li><a href="shopcart.html"><i class="am-icon-shopping-basket"></i>购物车</a></li>	
			<li><a href="${pageContext.request.contextPath }/person/index.html"><i class="am-icon-user"></i>我的</a></li>					
		</div>

		<!--菜单 -->
		<div class=tip>
			<div id="sidebar">
				<div id="wrap">
					<div id="prof" class="item">
						<a href="#">
							<span class="setting"></span>
						</a>
						<div class="ibar_login_box status_login">
							<div class="avatar_box">
								<p class="avatar_imgbox"><img src="${pageContext.request.contextPath }/images/no-img_mid_.jpg" /></p>
								<ul class="user_info">
									<li>用户名：sl1903</li>
									<li>级&nbsp;别：普通会员</li>
								</ul>
							</div>
							<div class="login_btnbox">
								<a href="#" class="login_order">我的订单</a>
								<a href="#" class="login_favorite">我的收藏</a>
							</div>
							<i class="icon_arrow_white"></i>
						</div>

					</div>
					<div id="shopCart" class="item">
						<a href="#">
							<span class="message"></span>
						</a>
						<p>
							购物车
						</p>
						<p class="cart_num">0</p>
					</div>
					<div id="asset" class="item">
						<a href="#">
							<span class="view"></span>
						</a>
						<div class="mp_tooltip">
							我的资产
							<i class="icon_arrow_right_black"></i>
						</div>
					</div>

					<div id="foot" class="item">
						<a href="#">
							<span class="zuji"></span>
						</a>
						<div class="mp_tooltip">
							我的足迹
							<i class="icon_arrow_right_black"></i>
						</div>
					</div>

					<div id="brand" class="item">
						<a href="#">
							<span class="wdsc"><img src="${pageContext.request.contextPath }/images/wdsc.png" /></span>
						</a>
						<div class="mp_tooltip">
							我的收藏
							<i class="icon_arrow_right_black"></i>
						</div>
					</div>

					<div id="broadcast" class="item">
						<a href="#">
							<span class="chongzhi"><img src="${pageContext.request.contextPath }/images/chongzhi.png" /></span>
						</a>
						<div class="mp_tooltip">
							我要充值
							<i class="icon_arrow_right_black"></i>
						</div>
					</div>

					<div class="quick_toggle">
						<li class="qtitem">
							<a href="#"><span class="kfzx"></span></a>
							<div class="mp_tooltip">客服中心<i class="icon_arrow_right_black"></i></div>
						</li>
						<!--二维码 -->
						<li class="qtitem">
							<a href="#none"><span class="mpbtn_qrcode"></span></a>
							<div class="mp_qrcode" style="display:none;"><img src="${pageContext.request.contextPath }/images/weixin_code_145.png" /><i class="icon_arrow_white"></i></div>
						</li>
						<li class="qtitem">
							<a href="#top" class="return_top"><span class="top"></span></a>
						</li>
					</div>

					<!--回到顶部 -->
					<div id="quick_links_pop" class="quick_links_pop hide"></div>

				</div>

			</div>
			<div id="prof-content" class="nav-content">
				<div class="nav-con-close">
					<i class="am-icon-angle-right am-icon-fw"></i>
				</div>
				<div>
					我
				</div>
			</div>
			<div id="shopCart-content" class="nav-content">
				<div class="nav-con-close">
					<i class="am-icon-angle-right am-icon-fw"></i>
				</div>
				<div>
					购物车
				</div>
			</div>
			<div id="asset-content" class="nav-content">
				<div class="nav-con-close">
					<i class="am-icon-angle-right am-icon-fw"></i>
				</div>
				<div>
					资产
				</div>

				<div class="ia-head-list">
					<a href="#" target="_blank" class="pl">
						<div class="num">0</div>
						<div class="text">优惠券</div>
					</a>
					<a href="#" target="_blank" class="pl">
						<div class="num">0</div>
						<div class="text">红包</div>
					</a>
					<a href="#" target="_blank" class="pl money">
						<div class="num">￥0</div>
						<div class="text">余额</div>
					</a>
				</div>

			</div>
			<div id="foot-content" class="nav-content">
				<div class="nav-con-close">
					<i class="am-icon-angle-right am-icon-fw"></i>
				</div>
				<div>
					足迹
				</div>
			</div>
			<div id="brand-content" class="nav-content">
				<div class="nav-con-close">
					<i class="am-icon-angle-right am-icon-fw"></i>
				</div>
				<div>
					收藏
				</div>
			</div>
			<div id="broadcast-content" class="nav-content">
				<div class="nav-con-close">
					<i class="am-icon-angle-right am-icon-fw"></i>
				</div>
				<div>
					充值
				</div>
			</div>
		</div>
		<script>
			window.jQuery || document.write('<script src="${pageContext.request.contextPath }/basic/js/jquery-1.9.min.js"><\/script>');
		</script>
		<script type="text/javascript" src="${pageContext.request.contextPath }/basic/js/quick_links.js"></script>

<div class="theme-popover-mask"></div>
		<script type="text/javascript">
			$(function(){
				var value = document.getElementById("username").value;
				var $this = $(this);
				$this.nextAll("input").remove();
				$this.after("<input type='hidden' id='email' name='email' value='" + value + "'>");								
			})
		</script>

	</body>

</html>